<template>
	<view class="container">
		<view class="con_bx">
			<view class="dropdown">
				<u-dropdown>
					<u-dropdown-item v-model="date" title="时间" :options="isToday"></u-dropdown-item>
					<u-dropdown-item v-model="floor" title="场馆" :options="floors"></u-dropdown-item>
				</u-dropdown>
			</view>
			<view class="select_title">
				<view class="select_title_img">
					<view class="m" v-for="(item,index) in iconSrc" :key="index">
						<u-icon :name="item.src" size="60"></u-icon>
						<text>{{item.text}}</text>
					</view>
				</view>
				<text style="font-size: 35rpx; font-weight: 500; color: #e1ba71;">请选择</text>
			</view>
			<view class="select_box">
				<u-grid :col="6" hover-class="none">
					<u-grid-item bg-color="#dfe5f2">
						<view class="local">
							<view class="one">
								<view style="position: relative; display: inline-block;">
									<u-icon name="../../../static/appointment/select/youren.png"
										style="margin-right: 5rpx;" :size="ySize"></u-icon>
									<text
										style="position: absolute;top: 50%;left: 50%;transform: translate(-50%,-65%);color: #FFFFFF;">01</text>
								</view>
								<view style="position: relative; display: inline-block;">
									<u-icon name="../../../static/appointment/select/youren.png"
										style="margin-right: 5rpx;" :size="ySize"></u-icon>
									<text
										style="position: absolute;top: 50%;left: 50%;transform: translate(-50%,-65%);color: #FFFFFF;">02</text>
								</view>
							</view>
							<u-icon name="../../../static/appointment/select/zhuozi.png" :size="zSize"
								style="margin-bottom: 10rpx"></u-icon>
							<view class="one">
								<view style="position: relative; display: inline-block;">
									<u-icon name="../../../static/appointment/select/youren.png"
										style="margin-right: 5rpx;" :size="ySize"></u-icon>
									<text
										style="position: absolute;top: 50%;left: 50%;transform: translate(-50%,-65%);color: #FFFFFF;">01</text>
								</view>
								<view style="position: relative; display: inline-block;">
									<u-icon name="../../../static/appointment/select/youren.png"
										style="margin-right: 5rpx;" :size="ySize"></u-icon>
									<text
										style="position: absolute;top: 50%;left: 50%;transform: translate(-50%,-65%);color: #FFFFFF;">02</text>
								</view>
							</view>
						</view>

					</u-grid-item>


				</u-grid>
			</view>
			<view class="select_foot">
				<view @click="goBack" class="select_foot_back">
					<text>返回</text>
				</view>
				<view class="select_foot_sure">
					<text>确认选座</text>
				</view>
			</view>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				iconSrc: [{
					src: '../../../static/appointment/youren.png',
					text: '有人'
				}, {
					src: '../../../static/appointment/zanli.png',
					text: '暂离'
				}, {
					src: '../../../static/appointment/jiandu.png',
					text: '监督'
				}, {
					src: '../../../static/appointment/wode.png',
					text: '我的选择'
				}, {
					src: '../../../static/appointment/kongxian.png',
					text: '空闲'
				}, ],
				ySize: '50',
				zSize: '100',
				date: 1,
				floor: 1,
				floors: [{
					label: '武汉纺织大学-总借还书(资格)',
					value: 1,
				}, {
					label: '阳光-自主学习中心(二楼)',
					value: 2,
				} ,{
					label: '阳光-自习室(二楼)',
					value: 3,
				}, {
					label: '阳光-历史文学阅览室(二楼)',
					value: 4,
				}, {
					label: '阳光-现代文学阅览室(三楼)',
					value:5,
				} ,{
					label: '阳光-教育，语言阅览室(四楼)',
					value: 6,
				},{
					label: '南湖-经济，社会科学阅览室(一楼)',
					value: 7,
				} ,{
					label: '南湖-外国文学论阅览室(二楼)',
					value: 8,
				} ],
				isToday: [{
						label: '今天',
						value: 1,
					},
					{
						label: '明天',
						value: 2,
					},
				],
			};
		},

		methods: {
			// 返回首页
			goBack() {
				uni.navigateBack()
			}
		}
	}
</script>

<style lang="scss">
	.container {
		height: 100%;
		width: 100%;
		background-color: #FFFFFF;
		position: absolute;
		top: 0;
		bottom: 0;
		left: 0;
		
		.dropdown {
			position: fixed;
			width: 100%;
			// background-color: #e1e1e1
			background-color: #FFFFFF;
			position: fixed;
			top: 88rpx;
			left: 0;
			z-index: 3;
		}

		.select_title {
			height: 200rpx;
			width: 100%;
			background-color: #e1e1e1;
			position: fixed;
			top: 168rpx;
			left: 0;
			z-index: 2;
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: space-around;

			.select_title_img {
				width: 80%;
				display: flex;
				align-items: center;
				justify-content: space-around;

				.m {
					display: flex;
					flex: 1;
					flex-direction: column;
					align-items: center;
				}
			}
		}

		.select_foot {
			height: 150rpx;
			width: 100%;
			background-color: #dfe5f2;
			position: fixed;
			bottom: 0;
			left: 0;
			z-index: 2;
			display: flex;


			.select_foot_back {
				height: 100%;
				width: 50%;
				display: flex;
				justify-content: center;
				align-items: center;
				color: #FFFFFF;
				font-size: 35rpx;
				background-color: #dbd6d8;
			}

			.select_foot_sure {
				height: 100%;
				width: 50%;
				display: flex;
				justify-content: center;
				align-items: center;
				color: #FFFFFF;
				font-size: 35rpx;
				background-color: #5e84bc;
			}
		}

		.select_box {
			height: 10000rpx;
			width: 100%;
			background-color: #dfe5f2;
			position: absolute;
			z-index: 1;
			padding: 300rpx 50rpx 0 50rpx;

			.local {
				display: flex;
				flex-direction: column;
				justify-content: center;
			}
		}


	}
</style>
